//
//  PopGestureRecognizerDelegate.h
//  ScreenPoP
//
//  Created by 万孟超 on 2022/1/19.
//  Copyright © 2022 wanmengchao. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol PopGestureRecognizerDelegate <NSObject>

@optional
/// 返回时代理
/// 重写返回按钮时，可实现此方法处理数据
/// @param lastController 上一个controller
/// @param currentController 当前controller
/// @return 是否自动返回上一个controller
- (BOOL)CM_GestureRecognizerPopLastController:(UIViewController *)lastController currentController:(UIViewController *)currentController;

/// 返回首页代理
/// @param currentController 当前controller
/// @return 是否自动返回主页
- (BOOL)CM_GestureRecognizerBackHomeController:(UIViewController *)currentController;

@end

NS_ASSUME_NONNULL_END
